- /* sfmdnchk.cpp by K.Tsuru */
- // function ID = 71 DRADIX
- /**************************************************
- SFraction class
- It checks that the denominator is positive or not.
- ***************************************************/
- #ifndef SN_H
- #include "sn.h"
- #endif
- void SFraction::DenCheck(void){
- if(den.Sign(71) == 0 ) den.SetError(den.DIVIDED_BY_ZERO,"SF", 71);
- if(den.Sign() < 0){
- den.ChangeSign(); // den = -den
- num.ChangeSign(); // num = -num
- }
- if(den.IsOne()) reduceDone = true;
- }
sfmdnchk.cpp : last modifiled at 2015/12/04 11:00:00(516 bytes)
created at 2015/12/22 16:07:29
The creation time of this html file is 2016/09/13 19:56:38 (Tue Sep 13 19:56:38 2016).